package cn.leyaber.hrm.domain;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ma.rui.kai
 * @since 2020-11-03
 */
@TableName("t_employee_role")
public class EmployeeRole extends Model<EmployeeRole> {

    private static final long serialVersionUID = 1L;
    // 员工id
    @TableId("employee_id")
    private Long employeeId;
    //角色id
    @TableField("role_id")
    private Long roleId;


    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.employeeId;
    }

    @Override
    public String toString() {
        return "EmployeeRole{" +
        ", employeeId=" + employeeId +
        ", roleId=" + roleId +
        "}";
    }

}
